﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmSeguimientoImportacionGenerar.aspx.cs"
    Inherits="Crosland.Automotriz.Web.Repuestos.SeguimientoImportacionGenerar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxTabControl"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxUploadControl"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export"
    TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxClasses"
    TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <style type="text/css">
        .campos_oblig
        {
            color: Red;
            font-weight: bold;
        }
        .filas
        {
            padding: 0.15em 0.5em;
        }
        .filas_msg
        {
            padding: 0.75em 0.5em;
        }
        .campos_vacio
        {
        }
        .rbt_Carga
        {
            padding-left: 0.5em !important;
            padding-right: 1.5em !important;
            vertical-align: top !important;
        }
        .RP_IMP
        {
            padding-bottom: 1em;
        }
        #divPrimero, #divSegundo
        {
            float: left;
            width: 40%;
            margin-right: 2em;
            vertical-align: top;
        }
        .style2
        {
            padding: 0.60em 0.5em;
            width: 117px;
        }
        .style3
        {
            width: 124px;
            padding: 0.15em 0.5em;
        }
    </style>
    <script type="text/javascript" language="javascript">

        function url() {
            open('wFrmDatosNoGrabados.aspx', 'NewWindow', 'top=0,left=0,width=1150,height=650,status=yes,resizable=yes,scrollbars=yes');
        }
        function RegistrarTriggers(control) {
            Sys.WebForm.PageRequestManager.getInstance()._updateControls(['UpdatePanel1'], [], [control.id], 90);
        }
        function CargaExcel() {
            pcImpExcel.Show();
        }
        function CargaPronostico() {
            pcImpPronostico.Show();
        }
        function MostrarDetalleImp() {
            btnMostrarDetalleImp.DoClick();
        }

        function doClic() {

            btnExportar3.DoClick();
        }

        function SetMaxLength(memo, maxLength) {
            if (!memo)
                return;
            if (typeof (maxLength) !== "undefined" && maxLength >= 0) {
                memo.maxLength = maxLength;
                memo.maxLengthTimerToken = window.setInterval(function () {
                    var text = memo.GetText();
                    if (text && text.length > memo.maxLength) {
                        memo.SetText(text.substr(0, memo.maxLength));
                        return;
                    }
                    lblCaracRestan.SetText("Quedan " + (memo.maxLength - text.length) + " caracteres.");
                }, 10);
            } else if (memo.maxLengthTimerToken) {
                window.clearInterval(memo.maxLengthTimerToken);
                delete memo.maxLengthTimerToken;
                delete memo.maxLength;
            }
        }
        function OnMaxLengthChanged(s, e) {
            var maxLength = 150;
            SetMaxLength(memo, maxLength);
        }


        function MostrarDatos() {
            btnVerDetalle.DoClick();
        }

    </script>
    <div class="main-header" style="width: 100%">
        <div class="main-titulo" style="width: 87%;">
            Seguimiento de Importación
        </div>
    </div>
    <div class="content-form">
        <table>
            <tr>
                <td class="filas2">
                    <dx:ASPxButton ID="btnFormatoExcel" runat="server" Text="Descargar formato excel" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnFormatoExcel_Click" ClientInstanceName="btnFormatoExcel">
                        <Image Url="~/Images/excel16.gif">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td class="filas2">
                    <asp:UpdatePanel runat="server">
                        <ContentTemplate>
                            <dx:ASPxButton ID="cmdGrabar" runat="server" Text="Grabar" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                OnClick="cmdGrabar_Click" Width="100px">
                                <Image Url="~/Images/save_16.gif">
                                </Image>
                            </dx:ASPxButton>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnSalir2" runat="server" Text="Salir" 
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" OnClick="btnSalir_Click"
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                        AutoPostBack="False" Width="100px">
                        <Image Url="~/Images/logout.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxPageControl ID="PCL1" runat="server" Width="100%" ActiveTabIndex="0" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            TabSpacing="0px">
            <TabPages>
                <dx:TabPage Name="TabImportacionCab" Text="Importación">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                            <asp:UpdatePanel ID="UPL1" runat="server">
                                <ContentTemplate>
                                    <asp:UpdateProgress runat="server" ID="UpdateProgress2">
                                        <ProgressTemplate>
                                            <div id="blur1">
                                            </div>
                                            <div class="verventa-overlay">
                                                <div class="recventa-overlay">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <img src="../Images/loading1.gif" alt="Cargando..." />
                                                            </td>
                                                            <td>
                                                                <strong>Procesando ....</strong>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                    <dx:ASPxRoundPanel ID="RPSeguimientoImportacion" runat="server" Width="100%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                        GroupBoxCaptionOffsetY="-19px" HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px">
                                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                        <contentpaddings paddingbottom="10px" paddingleft="9px" 
                                            paddingright="11px" paddingtop="10px" />
                                        <contentpaddings paddingbottom="10px" paddingleft="9px" 
                                            paddingright="11px" paddingtop="10px" />
                                        <HeaderStyle>
                                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                        <paddings paddingbottom="6px" paddingleft="9px" paddingright="11px" 
                                            paddingtop="3px" />
                                        <paddings paddingbottom="6px" paddingleft="9px" paddingright="11px" 
                                            paddingtop="3px" />
                                        </HeaderStyle>
                                        <PanelCollection>
                                            <dx:PanelContent ID="PanelContent8" runat="server" SupportsDisabledAttribute="True">
                                                <table>
                                                    <tr>
                                                        <td class="filas">
                                                            Org.Venta
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="lblOrganizacionVenta" runat="server">
                                                            </dx:ASPxLabel>
                                                            <asp:Label ID="lblIdCab" runat="server" Visible="False"></asp:Label>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;
                                                        </td>
                                                        <td class="filas">
                                                            Oficina venta
                                                        </td>
                                                        <td class="filas" style="width: 116px">
                                                            <dx:ASPxComboBox ID="cboOficinaVenta" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <loadingpanelimage url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </loadingpanelimage>
                                                                <loadingpanelstyle imagespacing="5px">
                                                                </loadingpanelstyle>
                                                                <buttonstyle width="13px">
                                                                </buttonstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel2" runat="server" Text="*" CssClass="campos_oblig">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Nro.pedido origen
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxTextBox ID="txtNumeroOrigen" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" MaxLength="12" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel3" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="filas">
                                                            Nro. Pedido
                                                        </td>
                                                        <td class="filas" style="width: 116px">
                                                            <dx:ASPxTextBox ID="txtNumPedido" runat="server" 
                                                                ClientInstanceName="txtNumPedido" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" MaxLength="12" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel4" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Fecha de Pedido
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxDateEdit ID="dtpFechaPed" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                                                <calendarproperties>
                                                                    





                                                                    

                                                                    





<HeaderStyle Spacing="1px" />
                                                                





                                                                    

                                                                





</calendarproperties>
                                                                <buttonstyle width="13px">
                                                                </buttonstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxDateEdit>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel5" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="filas">
                                                            Tipo transporte
                                                        </td>
                                                        <td class="filas" style="width: 116px">
                                                            <dx:ASPxComboBox ID="cboTipoTransporte" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <loadingpanelimage url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </loadingpanelimage>
                                                                <loadingpanelstyle imagespacing="5px">
                                                                </loadingpanelstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel6" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Fecha Embarque Est.
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxDateEdit ID="dtFecha_Embarque_Est" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <calendarproperties>
                                                                    





                                                                    

                                                                    





<HeaderStyle Spacing="1px" />
                                                                





                                                                    

                                                                





</calendarproperties>
                                                                <buttonstyle width="13px">
                                                                </buttonstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxDateEdit>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel7" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="filas">
                                                            Fecha Embarque(ETD)
                                                        </td>
                                                        <td style="width: 116px" class="filas">
                                                            <dx:ASPxDateEdit ID="dtpFechaEmbarque" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" Spacing="0"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                                                <CalendarProperties>
                                                                    





                                                                    

                                                                    





<HeaderStyle Spacing="1px" />
                                                                





                                                                    

                                                                





</CalendarProperties>
                                                                <ButtonStyle Width="13px">
                                                                </ButtonStyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxDateEdit>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Fecha Lleg.Puerto Est.
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxDateEdit ID="dtpFechaLlegadaEst" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                                                <calendarproperties>
                                                                    





                                                                    






<HeaderStyle Spacing="1px" />
                                                                










</calendarproperties>
                                                                <buttonstyle width="13px">
                                                                </buttonstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxDateEdit>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxLabel ID="ASPXLabel9" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="filas">
                                                            Fecha de lleg. puerto(ETA)
                                                        </td>
                                                        <td style="width: 116px;" class="filas">
                                                            <dx:ASPxDateEdit ID="dtFec_LLeg_Puerto" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" Spacing="0"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <CalendarProperties>
                                                                    









<HeaderStyle Spacing="1px" />
                                                                









</CalendarProperties>
                                                                <ButtonStyle Width="13px">
                                                                </ButtonStyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxDateEdit>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Fecha de lleg.Almacen
                                                        </td>
                                                        <td class="filas" style="width: 116px">
                                                            <dx:ASPxDateEdit ID="dtFec_lleg_Almacen" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <calendarproperties>
                                                                    




                                                            





<HeaderStyle Spacing="1px" />
                                                                








</calendarproperties>
                                                                <buttonstyle width="13px">
                                                                </buttonstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxDateEdit>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;
                                                        </td>
                                                        <td class="filas">
                                                            Estado
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxComboBox ID="cboExtado" runat="server" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <loadingpanelimage url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </loadingpanelimage>
                                                                <loadingpanelstyle imagespacing="5px">
                                                                </loadingpanelstyle>
                                                                <buttonstyle width="13px">
                                                                </buttonstyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Cant.contenedor 20 PIES:</td>
                                                        <td class="filas" style="width: 116px">
                                                            <dx:ASPxTextBox ID="txtCantidadContenedor20PIES" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;</td>
                                                        <td class="filas">
                                                            Cant.contenedor 40 PIES:</td>
                                                        <td class="filas">
                                                            <dx:ASPxTextBox ID="txtCantidadContenedor40PIES" runat="server" Width="170px" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Proveedor </td>
                                                        <td class="filas" style="width: 116px">
                                                            <dx:ASPxTextBox ID="txtcodProv" runat="server" Enabled="False" Width="80px">
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas" colspan="2">
                                                            <dx:ASPxTextBox ID="txtnomProv" runat="server" Enabled="False" Width="180px">
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxButton ID="btnBuscarProveedor" runat="server" AutoPostBack="False" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Buscar" 
                                                                Width="100px">
                                                                <ClientSideEvents Click="function(s, e){ pcProveedor.Show(); }" />
                                                                <Image Url="~/Images/search.png">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td class="filas campos_vacio">
                                                            <dx:ASPxLabel ID="ASPXLabel14" runat="server" CssClass="campos_oblig" Text="*">
                                                            </dx:ASPxLabel>
                                                            <dx:ASPxTextBox ID="txtidProv" runat="server" ClientVisible="False" Width="1px">
                                                            </dx:ASPxTextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="6">
                                                            &nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas">
                                                            Observaciones
                                                        </td>
                                                        <td class="filas" colspan="5">
                                                            <dx:ASPxMemo ID="txtObservaciones" runat="server" ClientInstanceName="memo" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                                CssPostfix="Office2010Blue" Rows="5" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100%">
                                                                <ClientSideEvents KeyUp="OnMaxLengthChanged" />
                                                                <clientsideevents keyup="OnMaxLengthChanged" />
                                                                <clientsideevents keyup="OnMaxLengthChanged" />
                                                            </dx:ASPxMemo>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="filas_msg" colspan="2">
                                                            <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="(*) Campos Obligatorios" CssClass="campos_oblig">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="filas_msg" colspan="2">
                                                            <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="Máximo 150 caracteres" Style="font-weight: bold;">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                        <td class="filas_msg" colspan="2" align="right">
                                                            <dx:ASPxLabel ID="lblCaracRestan" runat="server" ClientInstanceName="lblCaracRestan" CssClass="campos_oblig">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </dx:PanelContent>
                                        </PanelCollection>
                                    </dx:ASPxRoundPanel>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="TabImportacionDet" Text="Detalle de Importación">
                    <ContentCollection>
                        <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
      
                            <asp:UpdatePanel ID="UPL2" runat="server">
      
     
                                <ContentTemplate>
      
                                    <dx:ASPxRoundPanel ID="pnlDetalle" runat="server" Width="100%" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False"
                                        GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        HeaderText="Detalle de Importación">
                                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                        <HeaderStyle>
                                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                        </HeaderStyle>
                                        <PanelCollection>
                                            <dx:PanelContent>
                                                <asp:UpdateProgress runat="server" ID="UpdateProgress1">
                                                    <ProgressTemplate>
                                                        <div id="blur1">
                                                        </div>
                                                        <div class="verventa-overlay">
                                                            <div class="recventa-overlay">
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <img src="../Images/loading1.gif" alt="Cargando..." />
                                                                        </td>
                                                                        <td>
                                                                            <strong>Procesando ....</strong>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </div>
                                                        </div>
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                                <table>
                                                    <tr>
                                                        <td class="filas">
                                                            Tipo de carga
                                                        </td>
                                                        <td class="filas" style="vertical-align: top;">
                                                            <dx:ASPxComboBox ID="cboTipoCarga" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" Height="16px" LoadingPanelText="Cargando&amp;hellip;"
                                                                Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="170px">
                                                                <ClientSideEvents SelectedIndexChanged="function(s, e) {MostrarDetalleImp();}" />
                                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                </LoadingPanelImage>
                                                                <LoadingPanelStyle ImageSpacing="5px">
                                                                </LoadingPanelStyle>
                                                                <ButtonStyle Width="13px">
                                                                </ButtonStyle>
                                                                <Paddings PaddingLeft="5px" />
                                                            </dx:ASPxComboBox>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxButton ID="btnMostrarDetalleImp" runat="server" ClientInstanceName="btnMostrarDetalleImp" ClientVisible="false" Width="1px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" OnClick="btnMostrarDetalleImp_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            </dx:ASPxButton>
                                                        </td>

                                                            <td class="filas">
                                                            <dx:ASPxButton ID="ASPxButton7" runat="server" Text="Importar Pronóstico" 
                                                                Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                                OnClick="ASPxButton7_Click" AutoPostBack="False">
                                                                <ClientSideEvents Click="function(s, e) {
pcImpPronostico.Show();

}" />
                                                                <Image Url="~/Images/btnimportacion.png">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td>
                                                        <dx:ASPxButton ID="btnExportar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Exportar" Width="100px" AutoPostBack="False" UseSubmitBehavior="False">
                                                            <ClientSideEvents Click="function(s, e) {
	doClic();
}" />
                                    <Image Url="~/Images/excel16.gif">
                                    </Image>
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                                                        
                                                        </td>
                                                               <td class="filas">
                                                            <dx:ASPxButton ID="ASPxButton5" runat="server" Text="Importar Excel" 
                                                                Width="140px" AutoPostBack="false" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                CssPostfix="Office2010Blue" 
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                <ClientSideEvents Click="function(s, e) {CargaExcel();}" />
                                                                <Image Url="~/Images/excel16.gif">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Nuevo" Width="100px" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                                OnClick="NuevoCM" AutoPostBack="False">
                                                                <Image Url="~/Images/bt_new_button.gif">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Modificar" Width="100px" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                                OnClick="ModificarCM" AutoPostBack="False">
                                                                <Image Url="~/Images/edit2.gif">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td class="filas">
                                                            <dx:ASPxButton ID="ASPxButton4" runat="server" Text="Eliminar" Width="100px" 
                                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                                OnClick="EliminarCM" AutoPostBack="False">
                                                                <Image Url="~/Images/delete.png">
                                                                </Image>
                                                            </dx:ASPxButton>
                                                        </td>
                                                  
                                                 
                                                    
                                                        <td class="filas campos_vacio" width="100px">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                </table>
                                                
                                                <table width="100%">
                                                    <tr>
                                                        <td class="filas" colspan="7">
                                                            <dx:ASPxGridView ID="grdDetalle" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                KeyFieldName="NUM_ITEM_PED" Width="100%" OnAfterPerformCallback="grdDetalle_AfterPerformCallback" OnPageIndexChanged="grdDetalle_PageIndexChanged">
                                                                <TotalSummary>
                                                                    <dx:ASPxSummaryItem FieldName="NUM_ITEM_PED" SummaryType="Count" 
                                                                        DisplayFormat="Total de filas = #,##0" ShowInColumn="Descripcion" />
                                                                    <dx:ASPxSummaryItem FieldName="TOTAL_FOB_ME" SummaryType="Sum" 
                                                                        DisplayFormat="Total = #,###,##0.00" />
                                                                </TotalSummary>
                                                                <Columns>
                                                                    <dx:GridViewDataTextColumn FieldName="ID_MATERIAL" ShowInCustomizationForm="True" VisibleIndex="0" Visible="false" Width="0px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="COD_MATERIAL" 
                                                                        ShowInCustomizationForm="True" VisibleIndex="2" Caption="Código" Width="150px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="DES_MATERIAL" 
                                                                        ShowInCustomizationForm="True" VisibleIndex="3" Caption="Descripción" 
                                                                        Width="475px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ID_COLOR" Caption="idColor" ShowInCustomizationForm="True" Visible="False" VisibleIndex="4" Width="0px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="DES_COLOR" Caption="Color" ShowInCustomizationForm="True" VisibleIndex="5" Width="150px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="CAJA" ShowInCustomizationForm="True" VisibleIndex="6" Caption="Caja" Width="120px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="CANT_IMP" ShowInCustomizationForm="True" VisibleIndex="7" Caption="Cantidad" Width="80px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="FOB_ME" ShowInCustomizationForm="True" 
                                                                        VisibleIndex="8" Caption="FOB $" UnboundType="Decimal" Width="80px">
                                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                            

                                                                        </PropertiesTextEdit>
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="TOTAL_FOB_ME" 
                                                                        ShowInCustomizationForm="True" UnboundType="Decimal" VisibleIndex="10" 
                                                                        Caption="Total FOB $" Width="150px">
                                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                                            

                                                                        </PropertiesTextEdit>
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="COD_TIPO_PEDIDO" ShowInCustomizationForm="True" Visible="False" VisibleIndex="12" Width="0px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ID_ORG_VTA" ShowInCustomizationForm="True" Visible="False" VisibleIndex="9" Width="0px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="NUM_PEDIDO" ShowInCustomizationForm="True" Visible="False" VisibleIndex="11" Width="0px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn FieldName="ID_TIPO_PEDIDO" ShowInCustomizationForm="True" Visible="false" VisibleIndex="13" Width="0px">
                                                                    </dx:GridViewDataTextColumn>
                                                                    <dx:GridViewDataTextColumn Caption="Nro" FieldName="NUM_ITEM_PED" ShowInCustomizationForm="True" VisibleIndex="1" Width="50px">
                                                                    </dx:GridViewDataTextColumn>
                                                                </Columns>
                                                                <SettingsBehavior AllowFocusedRow="True" />
                                                                <SettingsPager PageSize="10000" Visible="False">
                                                                </SettingsPager>
                                                                <Settings ShowFooter="True" ShowFilterRow="True" ShowVerticalScrollBar="True" VerticalScrollableHeight="330" />
                                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanelOnStatusBar>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </Images>
                                                                <ImagesFilterControl>
                                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                    </LoadingPanel>
                                                                </ImagesFilterControl>
                                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                    </Header>
                                                                    <LoadingPanel ImageSpacing="5px">
                                                                    </LoadingPanel>
                                                                </Styles>
                                                                <StylesPager>
                                                                    <PageNumber ForeColor="#3E4846">
                                                                    </PageNumber>
                                                                    <Summary ForeColor="#1E395B">
                                                                    </Summary>
                                                                </StylesPager>
                                                                <StylesEditors ButtonEditCellSpacing="0">
                                                                    <ProgressBar Height="21px">
                                                                    </ProgressBar>
                                                                </StylesEditors>
                                                            </dx:ASPxGridView>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </dx:PanelContent>
                                        </PanelCollection>
                                    </dx:ASPxRoundPanel>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
                <dx:TabPage Name="TabImportacionDocRel" Text="Documentos Relacionados">
                    <ContentCollection>
                        <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                            <asp:UpdatePanel ID="UPL3" runat="server">
                                <ContentTemplate>
                                    <asp:UpdateProgress runat="server" ID="UpdateProgress3">
                                        <ProgressTemplate>
                                            <div id="blur1">
                                            </div>
                                            <div class="verventa-overlay">
                                                <div class="recventa-overlay">
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <img src="../Images/loading1.gif" alt="Cargando..." />
                                                            </td>
                                                            <td>
                                                                <strong>Procesando ....</strong>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                    <table>
                                        <tr>
                                            <td class="filas">
                                                <dx:ASPxButton ID="btnDocNuevo" runat="server" Text="Nuevo" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Width="100px" OnClick="btnDocNuevo_Click">
                                                    <Image Url="~/Images/bt_new_button.gif">
                                                    </Image>
                                                </dx:ASPxButton>
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxButton ID="btnDocModificar" runat="server" Text="Modificar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px" AutoPostBack="False" OnClick="btnDocModificar_Click">
                                                    <Image Url="~/Images/edit2.gif">
                                                    </Image>
                                                </dx:ASPxButton>
                                            </td>
                                            <td class="filas">
                                                <dx:ASPxButton ID="btnDocAnular" runat="server" Text="Eliminar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                    Width="100px" OnClick="btnDocEliminar_Click">
                                                    <Image Url="~/Images/delete.png">
                                                    </Image>
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td class="filas">
                                                <dx:ASPxGridView ID="grdListaDocumentosImportaciones" runat="server" 
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    Width="600px" AutoGenerateColumns="False" 
                                                    KeyFieldName="ID_T_IMPORTACIONES_RELACION" OnAfterPerformCallback="grdListaDocumentosImportaciones_AfterPerformCallback"
                                                    EnableCallBacks="False" 
                                                    OnPageIndexChanged="grdListaDocumentosImportaciones_PageIndexChanged">
                                                    <TotalSummary>
                                                        <dx:ASPxSummaryItem FieldName="NUM_PEDIDO" SummaryType="Count" DisplayFormat="total de filas = #,##0" />
                                                    </TotalSummary>
                                                    <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="ID_T_IMPORTACIONES_RELACION" VisibleIndex="0" Visible="False">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Nro Pedido" FieldName="NUM_PEDIDO" VisibleIndex="1">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Org Vta" FieldName="DES_ORG_VTA" VisibleIndex="2">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Tipo Documento" FieldName="DES_LARGA" VisibleIndex="3">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Nro Documento" FieldName="COD_NRO_DOCUMENTO" VisibleIndex="4">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="ID_TIPO_DOC_SEG" VisibleIndex="5" Visible="False">
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>
                                                    <SettingsBehavior AllowFocusedRow="True" />
                                                    <SettingsPager AlwaysShowPager="false" Visible="False" PageSize="1000">
                                                    </SettingsPager>
                                                    <Settings ShowFooter="True" ShowVerticalScrollBar="True" VerticalScrollableHeight="400" />
                                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                        </LoadingPanelOnStatusBar>
                                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                        </LoadingPanel>
                                                    </Images>
                                                    <ImagesFilterControl>
                                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                        </LoadingPanel>
                                                    </ImagesFilterControl>
                                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="5px">
                                                        </LoadingPanel>
                                                    </Styles>
                                                    <StylesPager>
                                                        <PageNumber ForeColor="#3E4846">
                                                        </PageNumber>
                                                        <Summary ForeColor="#1E395B">
                                                        </Summary>
                                                    </StylesPager>
                                                    <StylesEditors ButtonEditCellSpacing="0">
                                                        <ProgressBar Height="21px">
                                                        </ProgressBar>
                                                    </StylesEditors>
                                                </dx:ASPxGridView>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </dx:ContentControl>
                    </ContentCollection>
                </dx:TabPage>
            </TabPages>
            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
            </LoadingPanelImage>
            <LoadingPanelStyle ImageSpacing="5px">
            </LoadingPanelStyle>
            <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px"></Paddings>
            <ContentStyle>
                <Paddings Padding="12px" />
                <Border BorderColor="#859EBF" BorderStyle="Solid" BorderWidth="1px" />
<Paddings Padding="12px"></Paddings>

<Border BorderColor="#859EBF" BorderStyle="Solid" BorderWidth="1px"></Border>
            </ContentStyle>
        </dx:ASPxPageControl>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <dx:ASPxPopupControl ID="PopFiltroDet" runat="server" AllowDragging="True" ClientInstanceName="PopFiltroDet" CloseAction="CloseButton" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="350px" AppearAfter="350">
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl9" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel8" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent10" runat="server">
                                        <table width="100%">
                                            <tr>
                                                <td colspan="2" class="filas_msg" style="text-align: center;">
                                                    Ya existe el tipo de carga. ¿Desea reemplazarlo?
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas_msg" align="right">
                                                    <dx:ASPxButton ID="PopAceptarFiltro" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Aceptar" OnClick="PopAceptarFiltro_Click" Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {PopFiltroDet.Hide(); e.processOnServer = true;}" />
                                                        <Image Url="~/Images/ok.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg" align="left">
                                                    <dx:ASPxButton ID="PopCancelarFiltro" runat="server" Text="Cancelar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {PopFiltroDet.Hide();}" />
                                                        <Image Url="~/Images/cancel.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="pcCarga" runat="server" AllowDragging="True" ClientInstanceName="pcCarga" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="350px" AppearAfter="350">
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent1" runat="server">
                                        <table width="100%">
                                            <tr>
                                                <td align="center" class="filas_msg" colspan="3">
                                                    Existen registros en la tabla. ¿Que desea realizar?
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnCargaAgregar" runat="server" Text="Agregar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnCargaAgregar_Click">
                                                        <ClientSideEvents Click="function(s, e) {pcImpExcel.Hide(); pcCarga.Hide();}" />
                                                        <Image Url="~/Images/add2.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnCargaReemplazar" runat="server" Text="Reemplazar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnCargaReemplazar_Click">
                                                        <ClientSideEvents Click="function(s, e) {pcImpExcel.Hide(); pcCarga.Hide();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnCargaCancelar" runat="server" Text="Cancelar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e) {pcCarga.Hide();}" />
                                                        <Image Url="~/Images/logout.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="pcPronosticos" runat="server" AllowDragging="True" ClientInstanceName="pcPronosticos" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="350px" AppearAfter="350">
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent2" runat="server">
                                        <table width="100%">
                                            <tr>
                                                <td align="center" class="filas_msg" colspan="3">
                                                    Existen registros en la tabla. ¿Que desea realizar?
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnPRNAgregar" runat="server" Text="Agregar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" Width="100px"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnPRNAgregar_Click">
                                                        <ClientSideEvents Click="function(s, e) {pcImpPronostico.Hide(); pcPronosticos.Hide();}" />
                                                        <Image Url="~/Images/add2.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnPRNReemplazar" runat="server" Text="Reemplazar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnPRNReemplazar_Click">
                                                        <ClientSideEvents Click="function(s, e) {pcImpPronostico.Hide(); pcPronosticos.Hide();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnPRNCancelar" runat="server" Text="Cancelar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e) {pcPronosticos.Hide();}" />
                                                        <Image Url="~/Images/logout.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupErrorNumPedido" runat="server" AllowDragging="True" ClientInstanceName="popupErrorNumPedido" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="350px" AppearAfter="350">
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl10" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel9" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent11" runat="server">
                                        <table width="100%">
                                            <tr>
                                                <td class="filas_msg" align="center">
                                                    <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" class="filas_msg">
                                                   <dx:ASPxLabel ID="lblMsjDetalleRegistro" runat="server" ClientVisible="False">
                                                    </dx:ASPxLabel></td>
                                            </tr>
                                            <tr>
                                                <td align="center" class="filas_msg">
                                                      <dx:ASPxHyperLink ID="hplArticulosNoRegistrado" runat="server" 
                                                        Text="Ver artículos no registrados" ClientVisible="False" Cursor="pointer" 
                                                        Font-Names="Aharoni" Font-Size="11pt" Font-Underline="True" ForeColor="#000099">
                                                        <ClientSideEvents Click="function(s, e) {
	MostrarDatos();
}" />
                                                    </dx:ASPxHyperLink></td>
                                            </tr>
                                            <tr>
                                                <td align="center" class="filas_msg">
                                                    <dx:ASPxButton ID="ASPxButton6" runat="server" Text="Aceptar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e) {popupErrorNumPedido.Hide();}" />
                                                        <Image Url="~/Images/ok.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="pcImpExcel" runat="server" ClientInstanceName="pcImpExcel" Width="700px" HeaderText="Importacion de Archivo Excel" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    Height="200px" Modal="true" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                    <ContentCollection>
                        <dx:PopupControlContentControl>
                            <table width="80%" align="center" style="margin-top: 2em;">
                                <tr>
                                    <td>
                                        Seleccionar Archivo
                                    </td>
                                    <td align="char" colspan="4" style="padding-left: 1em;">
                                        <dx:ASPxUploadControl ID="ucCargarExcel" runat="server" OnClientClick="RegistrarTriggers(this)" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" OnFileUploadComplete="ucCargarExcel_FileUploadComplete" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Width="100%" AddUploadButtonsHorizontalPosition="Center" ClientInstanceName="ucCargarExcel">
                                            <ValidationSettings AllowedFileExtensions=".xls, .xlsx,.txt,.csv" MultiSelectionErrorText="Attention! 

                                                                    The following {0} files are invalid because they exceed the allowed file size ({1}) or their extensions are not allowed. These files have been removed from selection, so they will not be uploaded. 

                                                                    {2}" NotAllowedFileExtensionErrorText="Solo Puede Subir archivos excel(.xls;.xlsx)">
                                            </ValidationSettings>
                                            <BrowseButtonStyle Font-Size="10pt">
                                            </BrowseButtonStyle>
                                        </dx:ASPxUploadControl>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="filas_msg">
                                        &nbsp;
                                    </td>
                                    <td align="center" class="filas_msg">
                                        <dx:ASPxButton ID="cmdImportar" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Importar Archivo" Width="160px" ClientInstanceName="cmdImportar" 
                                            OnClick="cmdImportar_Click">
                                            <ClientSideEvents Click="function(s, e) {pcImpExcel.Hide(); ucCargarExcel.Upload();/*e.processOnServer = true;*/}" />
                                            <Image Url="~/Images/excel16.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="center" class="filas_msg">
                                        <dx:ASPxButton ID="btnCancelarImpExcel" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Cancelar" Width="150px" ClientInstanceName="btnCancelarImpExcel" AutoPostBack="False">
                                            <ClientSideEvents Click="function(s, e) {pcImpExcel.Hide();}" />
                                            <Image Url="~/Images/cancel.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td class="filas_msg">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="pcImpPronostico" runat="server" 
            ClientInstanceName="pcImpPronostico" Width="850px" 
            HeaderText="Importacion de Pronostico" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    Modal="true" PopupHorizontalAlign="WindowCenter" 
            PopupVerticalAlign="WindowCenter" CssPostfix="PlasticBlue" 
            SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
            AllowDragging="True" CloseAction="CloseButton" EnableHotTrack="False" 
            EnableViewState="False">
                    <ContentCollection>
                        <dx:PopupControlContentControl>
                            <table width="100%">
                                <tr>
                                    <td class="filas_msg" colspan="2">
                                        <dx:ASPxGridView ID="grdPronostico" runat="server" Width="100%" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" AutoGenerateColumns="False" KeyFieldName="Nro_Pronostico" 
                                            ClientInstanceName="grdPronostico" 
                                            OnPageIndexChanged="grdPronostico_PageIndexChanged">
                                            <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                                            <Columns>
                                                <dx:GridViewDataTextColumn Caption="Nro_Pronostico" FieldName="Nro_Pronostico" ShowInCustomizationForm="True" VisibleIndex="0">
                                                    <PropertiesTextEdit>
                                                        <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
                                                        </ValidationSettings>
                                                    </PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Fecha de Pedido" FieldName="FECHA_GEN" 
                                                    ShowInCustomizationForm="True" VisibleIndex="1">
                                                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                                        <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
                                                        </ValidationSettings>
                                                    </PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Generado Por" FieldName="USER_NEW" 
                                                    ShowInCustomizationForm="True" VisibleIndex="4">
                                                    <PropertiesTextEdit>
                                                        <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
                                                        </ValidationSettings>
                                                    </PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Actualiza Por" FieldName="USER_UPDATE" 
                                                    ShowInCustomizationForm="True" VisibleIndex="5">
                                                    <PropertiesTextEdit>
                                                        <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
                                                        </ValidationSettings>
                                                    </PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Ultima Actualizacion" 
                                                    FieldName="FEC_UPDATE" ShowInCustomizationForm="True" VisibleIndex="6">
                                                    <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                                        <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
                                                        </ValidationSettings>
                                                    </PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Importe Total" FieldName="TOTAL_FOB" ShowInCustomizationForm="True" VisibleIndex="7">
                                                    <PropertiesTextEdit DisplayFormatString="#,###,##0.00">
                                                        <ValidationSettings ErrorText="Valor inv&#225;lido">
                                                            <RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
                                                        </ValidationSettings>
                                                    </PropertiesTextEdit>
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsLoadingPanel Text="Cargando&amp;hellip;" Mode="Disabled" 
                                                ShowImage="False"></SettingsLoadingPanel>
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="filas_msg" align="right">
                                        <dx:ASPxButton ID="btnPCIMPAceptar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" OnClick="btnAceptar_Click"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Aceptar">
                                            <ClientSideEvents Click="function(s, e) {/*pcImpPronostico.Hide();e.processOnServer = true;*/}" />
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td class="filas_msg" align="left">
                                        <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            OnClick="btnCancelar_Click">
                                            <ClientSideEvents Click="function(s, e) {pcImpPronostico.Hide();}" />
                                            <Image Url="~/Images/cancel.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                            <table align="center">
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="pcProveedor" runat="server" 
            ClientInstanceName="pcProveedor" Width="600px" 
            HeaderText="Seleccionar Proveedor" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    Modal="true" PopupHorizontalAlign="WindowCenter" 
            PopupVerticalAlign="WindowCenter" CssPostfix="PlasticBlue" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css"
                    CloseAction="CloseButton" AllowDragging="True" 
            EnableHotTrack="False" EnableViewState="False">
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl>
                            <table>
                                <tr>
                                    <td class="filas_msg">
                                        Nombre
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxTextBox ID="txtProvDescrip" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="filas_msg">
                                        Limite
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxComboBox ID="cboProvLimite" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SelectedIndex="0"
                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <Items>
                                                <dx:ListEditItem Selected="True" Text="50  Registros" Value="50" />
                                                <dx:ListEditItem Text="100 Registros" Value="100" />
                                                <dx:ListEditItem Text="200 Registros" Value="200" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxButton ID="btnProvBuscar" runat="server" Text="Buscar" Width="100px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            OnClick="btnProvBuscar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <Image Url="~/Images/search.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                            <table width="100%">
                                <tr>
                                    <td colspan="3" class="filas_msg">
                                        <dx:ASPxGridView ID="grdProveedorImp" ClientInstanceName="grdProveedorImp" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            KeyFieldName="ID_PROVEEDOR" Width="100%" AutoGenerateColumns="False" OnAfterPerformCallback="grdProveedorImp_AfterPerformCallback" OnPageIndexChanged="grdProveedorImp_PageIndexChanged">
                                            <Columns>
                                                <dx:GridViewDataTextColumn FieldName="ID_PROVEEDOR" ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Codigo" FieldName="COD_PROVEEDOR" ShowInCustomizationForm="True" VisibleIndex="1" Width="80px">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Nombre" FieldName="NOM_PROVEEDOR" ShowInCustomizationForm="True" VisibleIndex="2" Width="300px">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" />
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="filas_msg" colspan="2">
                                        <dx:ASPxButton ID="btnAgregarProveedor" runat="server" Text="Aceptar" OnClick="AgregarProveedor" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ClientSideEvents Click="function(s, e){ pcProveedor.Hide();}" />
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="left" class="filas_msg" colspan="2">
                                        <dx:ASPxButton ID="btnCancelarProveedor" runat="server" AutoPostBack="false" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ClientSideEvents Click="function(s, e){ pcProveedor.Hide();}" />
                                            <Image Url="~/Images/cancel.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="PopupDocumento" runat="server" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" HeaderText="Actualizar Documento"
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="600px" AllowDragging="True" ClientInstanceName="PopupDocumento" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter">
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                            <table>
                                <tr>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Org.Venta :" Width="150px">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="lblDROrgVta" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="Número pedido :" Width="150px">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas">
                                        <dx:ASPxLabel ID="lblDRNumeroPedido" runat="server" ClientInstanceName="lblDRNumeroPedido">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="Tipo documento seg. :">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxComboBox ID="cboDRTipoDocumento" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" Spacing="0"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="filas_msg">
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel13" runat="server" Text="Número documento :">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxTextBox ID="txtDRNumeroDocumento" runat="server" Width="150px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="filas_msg" colspan="5">
                                        &nbsp;<table width="100%">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="btnPopDocAgregar" runat="server" 
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                        CssPostfix="Office2010Blue" OnClick="btnPopDocAgregar_Click" 
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Guardar" 
                                                        Width="100px">
                                                        <ClientSideEvents Click="function(s, e){PopupDocumento.Hide();}" />
                                                        <Image Url="~/Images/save_16.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="right" width="105">
                                                    <dx:ASPxButton ID="btnPopDocCancelar" runat="server" AutoPostBack="False" 
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                        CssPostfix="Office2010Blue" 
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                                        Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {PopupDocumento.Hide();}" />
                                                        <Image Url="~/Images/cancel.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        &nbsp; &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="pcValSalir" runat="server" AllowDragging="True" ClientInstanceName="pcValSalir" CloseAction="None" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css"
                    CssPostfix="PlasticBlue" EnableViewState="False" HeaderText="Mensaje" LoadingPanelText="Cargando&amp;hellip;" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="450px" AppearAfter="350">
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent3" runat="server">
                                        <table width="100%">
                                            <tr>
                                                <td colspan="3" class="filas_msg" style="text-align: center;">
                                                    Hay datos sin guardar. ¿Que desea realizar?
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnValSalirAceptar" runat="server" Text="Guardar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="130px" OnClick="btnValSalirAceptar_Click" Style="height: 23px">
                                                        <ClientSideEvents Click="function(s, e) {pcValSalir.Hide();}" />
                                                        <Image Url="~/Images/save_16.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="btnValSalirSalir" runat="server" Text="Salir sin guardar" 
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                                        Width="150px" OnClick="btnValSalirSalir_Click">
                                                        <ClientSideEvents Click="function(s, e) {pcValSalir.Hide();}" />
                                                        <Image Url="~/Images/logout.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td class="filas_msg">
                                                    <dx:ASPxButton ID="ASPxButton8" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="130px" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {pcValSalir.Hide();}" />
                                                        <Image Url="~/Images/cancel.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
             

                            <br />



                            <dx:ASPxGridView ID="grdDatosNoRegistrados" runat="server" 
            AutoGenerateColumns="False" ClientVisible="False" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" KeyFieldName="cod_material" 
            ClientInstanceName="Articulos No Registrados">
            <Columns>
                <dx:GridViewDataTextColumn Caption="CODIGO" FieldName="cod_material" 
                    VisibleIndex="0" Width="100px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="DESCRIPCION" FieldName="descripcion" 
                    VisibleIndex="1" Width="350px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="cantidad" VisibleIndex="2" Width="50px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="fob_unit" VisibleIndex="3" Width="50px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="caja" VisibleIndex="4" Width="100px">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="tipo_pronostico" VisibleIndex="5" 
                    Width="100px">
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsPager PageSize="1000">
            </SettingsPager>
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
        </dx:ASPxGridView>

        <br />


        <dx:ASPxGridViewExporter ID="gvExporterArticulosNoRegistrados" runat="server" 
            FileName="cod_material" GridViewID="grdDatosNoRegistrados">
        </dx:ASPxGridViewExporter>


                <br />
                <dx:ASPxGridViewExporter ID="gvExportarDetalleImportacion" runat="server" 
                    GridViewID="grdDetalle">
                </dx:ASPxGridViewExporter>


            </ContentTemplate>
        </asp:UpdatePanel>


           <br />


                    <dx:ASPxButton ID="btnVerDetalle" runat="server" OnClick="btnDetalle_Click" ClientVisible="false"
                                ClientInstanceName="btnVerDetalle" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="1px">
                            </dx:ASPxButton>

                                <dx:ASPxButton ID="btnExportar3" runat="server"  ClientVisible="false"
                                ClientInstanceName="btnExportar3" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="1px" onclick="btnExportar3_Click">
                            </dx:ASPxButton>
                            
    </div>
</asp:Content>
